
/**
 *
 * @author Simon
 */
import java.awt.GridLayout;
import javax.swing.JButton;
import javax.swing.JFrame;

public class QuickSum extends JFrame {

    public static void main(String[] args) {

        QuickSum program = new QuickSum();

        program.setLayout(new GridLayout(3, 3));

        JButton one = new JButton("1");
        program.add(one);

        JButton two = new JButton("2");
        program.add(two);

        JButton three = new JButton("3");
        program.add(three);

        JButton four = new JButton("4");
        program.add(four);

        JButton five = new JButton("5");
        program.add(five);

        JButton six = new JButton("6");
        program.add(six);

        JButton seven = new JButton("7");
        program.add(seven);

        JButton eight = new JButton("8");
        program.add(eight);

        JButton nine = new JButton("9");
        program.add(nine);

        program.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
        program.setVisible(true);
        program.setTitle("Sum: ");
        program.setSize(444, 444);
    }
}